import scala.language.implicitConversions

package object squirrel {
  implicit def stringToSqlValue(str: String): SqlValueString =
    SqlValueString(str)

  implicit def bigIntToSqlValue(num: BigInt): SqlValueNumber =
    SqlValueNumber(BigDecimal(num))

  implicit def decimalToSqlValue(num: BigDecimal): SqlValueNumber =
    SqlValueNumber(num)

  implicit def longToSqlValue(num: Int): SqlValueNumber =
    SqlValueNumber(num)

  implicit def longToSqlValue(num: Long): SqlValueNumber =
    SqlValueNumber(num)

  implicit def doubleToSqlValue(num: Double): SqlValueNumber =
    SqlValueNumber(num)

  implicit def booleanToSqlValue(b: Boolean): SqlValueBool = {
    SqlValueBool(b)
  }
}
